<%@page import="com.auto.oa.org.service.OaOrgServiceFactory"%>
<%@page import="com.auto.oa.org.domain.OaOrgInfo"%>
<%@page import="java.util.List"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%
String result = "<option value=''>-请选择-</option>";
String orgCityGuid = request.getParameter("orgCityGuid");
String brandCode = request.getParameter("brandCode");

OaOrgInfo oaOrgInfo = new OaOrgInfo();
oaOrgInfo.setAuorgBrandCode(brandCode);
oaOrgInfo.setAuorgArea(orgCityGuid);

List<OaOrgInfo> list = OaOrgServiceFactory.oaOrgInfoService.queryListOaOrgInfo(oaOrgInfo);
for (OaOrgInfo oaOrgInfo2 : list) {
	String id = oaOrgInfo2.getAuorgCode();
	String name = oaOrgInfo2.getAuorgName();
	String orgCode = oaOrgInfo2.getAuorgCode();
	String orgAddress = oaOrgInfo2.getAuorgAddress();
	result += "<option value='"+id+"' orgCode='"+orgCode+"' orgAddress='"+orgAddress+"'>" + name +"</option>";
}
%>
{
"result": <%=result %>
}
